﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shake.Framework.Attributes
{
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public class ShakeCacheAttribute : Attribute
    {
        /// <summary>
        /// 过期时间，单位是秒
        /// </summary>
        public int Sliding { get; set; }

        public ShakeCacheAttribute(int sliding = 60)
        {
            Sliding = sliding;
        }
    }
}
